package indzcraft.loader;
import java.util.HashMap;


public class GemDB {
	
	private HashMap<Integer,Gem> gemDB = new HashMap<Integer,Gem>();
	
	public GemDB(){
		populateGemDB();
	}
	
	public Gem getGem(int id){
		if(gemDB.containsKey(id)){
			return gemDB.get(id);
		}
		System.out.println("unknown gemid: "+  id);
		return null;
	}
	
	public HashMap<Integer,Gem> getDB(){
		return gemDB;
	}
	
	private void populateGemDB() {
		gemDB.put(52212, new Gem(52212,"Delicate Inferno Ruby","inv_misc_cutgemsuperior6",Gem.RED,40,0,0,0)); // 40agi
		gemDB.put(71879, new Gem(71879,"Delicate Queen's Garnet","inv_misc_epicgem_01",Gem.RED,50,0,0,0)); // 50agi
		gemDB.put(52258, new Gem(52258,"Delicate Chimera's Eye","inv_jewelcrafting_dragonseye05",Gem.RED,67,0,0,0)); // 67agi
		gemDB.put(52220, new Gem(52220,"Glinting Demonseye","inv_misc_cutgemsuperior3",Gem.PURPLE,20,20,0,0)); // 20agi,20hit
		gemDB.put(71862, new Gem(71862,"Glinting Shadow Spinel","inv_misc_epicgem_05",Gem.PURPLE,25,25,0,0)); // 25agi,25hit
		gemDB.put(52211, new Gem(52211,"Deft Ember Topaz","inv_misc_cutgemsuperior4",Gem.ORANGE,20,0,20,0)); // 20agi,20haste
		gemDB.put(71848, new Gem(71848,"Deft Lava Coral","inv_misc_epicgem_04",Gem.ORANGE,25,0,25,0)); // 25agi,25haste
		gemDB.put(68778, new Gem(68778,"Agile Shadowspirit Diamond","inv_misc_metagem_b",Gem.META,54,0,0,0)); // 54agi Meta gem
		gemDB.put(52204, new Gem(52204,"Adept Ember Topaz","inv_misc_cutgemsuperior4",Gem.ORANGE,20,0,0,20)); // 20agi,20mastery
		
		// PvP
		gemDB.put(52226, new Gem(52226,"Mystic Amberjewel","inv_misc_cutgemsuperior",Gem.YELLOW,0,0,0,0)); // 40 resi
		gemDB.put(77139, new Gem(77139,"Steady Elven Peridot","inv_misc_epicgem_06",Gem.GREEN,0,0,0,0)); // 25 resi / 37 sta
		
		
	}
}
